//
//  WHTStoryOneModel.m
//  WZLProduct
//
//  Created by dllo on 16/3/28.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "WHTStoryOneModel.h"

@implementation WHTStoryOneModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"spot"]) {
        self.text = value[@"text"];
        self.poiName = value[@"poi"][@"name"];
    }
    if ([key isEqualToString:@"trip"]) {
        self.userImage = value[@"user"][@"avatar_m"];
        self.userName = value[@"user"][@"name"];
    }
}

@end
